<%@ page import="cn.zzszxyy.hr.comm.Global" %><%--
  作者:张伟

  联系:adamzzww@163.com
  时间:2016-11-27
  说明:无
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String url = request.getContextPath() + Global.PATH + "/user";
    String _asset_path = request.getContextPath() + "/assets/components";
%>
<html>
<head>
    <title>用户登录</title>
    <link href="<%=_asset_path%>/zui-1.5.0/css/zui.min.css" rel="stylesheet">
    <link rel="icon" href="<%=request.getContextPath()%>/assets/images/logo.ico" type="image/x-icon"/>
    <script type="text/javascript" src="<%=_asset_path%>/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="<%=_asset_path%>/zui-1.5.0/js/zui.min.js"></script>
    <style type="text/css">
        html, body {
            height: 100%;
        }

        .box {
            filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#6699FF', endColorstr='#6699FF'); /*  IE */
            background-image: linear-gradient(bottom, #6699FF 0%, #6699FF 100%);
            background-image: -o-linear-gradient(bottom, #6699FF 0%, #6699FF 100%);
            background-image: -moz-linear-gradient(bottom, #6699FF 0%, #6699FF 100%);
            background-image: -webkit-linear-gradient(bottom, #6699FF 0%, #6699FF 100%);
            background-image: -ms-linear-gradient(bottom, #6699FF 0%, #6699FF 100%);

            margin: 0 auto;
            position: relative;
            width: 100%;
            height: 100%;
        }

        .login-box {
            width: 100%;
            max-width: 500px;
            height: 400px;
            position: absolute;
            top: 50%;

            margin-top: -200px;
            /*设置负值，为要定位子盒子的一半高度*/

        }

        @media screen and (min-width: 500px) {
            .login-box {
                left: 50%;
                /*设置负值，为要定位子盒子的一半宽度*/
                margin-left: -250px;
            }
        }

        .form {
            width: 100%;
            max-width: 500px;
            height: 275px;
            margin: 25px auto 0px auto;
            padding-top: 25px;
        }

        .login-content {
            height: 300px;
            width: 100%;
            max-width: 500px;
            background-color: rgba(255, 250, 2550, .6);
            float: left;
        }

        .input-group {
            margin: 0px 0px 30px 0px !important;
        }

        .form-control,
        .input-group {
            height: 40px;
        }

        .form-group {
            margin-bottom: 0px !important;
        }

        .login-title {
            padding: 20px 10px;
            background-color: rgba(0, 0, 0, .6);
        }

        .login-title h1 {
            margin-top: 10px !important;
        }

        .login-title small {
            color: #fff;
        }

        .login-title strong {
            color: #fff;
        }

        .link p {
            line-height: 20px;
            margin-top: 30px;
        }

        .btn-sm {
            padding: 8px 24px !important;
            font-size: 16px !important;
        }
    </style>
</head>
<body>
<div class="box">
    <div class="login-box">
        <div class="login-title text-center">
            <h1><img src="<%=request.getContextPath()%>/assets/images/logo.png"
                     width="40" height="30" style="display: inline;">&nbsp;&nbsp;&nbsp;<strong>人力资源系统-登录</strong></h1>
        </div>
        <div class="login-content">
            <div class="form">
                <form method="POST" action="<%=url%>/login">
                    <div class="form-group">
                        <div class="col-xs-12  ">
                            <div class="input-group">
                                <span class="input-group-addon"><i class="icon icon-user"></i></span>
                                <input required type="text" id="loginName" name="loginName" class="form-control"
                                       placeholder="用户名">
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-12  ">
                            <div class="input-group">
                                <span class="input-group-addon"><i class="icon icon-key"></i></span>
                                <input required type="password" id="userPwd" name="userPwd" class="form-control"
                                       placeholder="密码">
                            </div>
                        </div>
                    </div>
                    <div class="form-group form-actions">
                        <div class="modal-footer">
                            <button type="submit" class="btn btn-sm"><span class="glyphicon glyphicon-off"></span> 登录
                            </button>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>
</div>

</form>
</div>
</body>
</html>
